# -*- encoding=utf8 -*-
from poco.exceptions import PocoTargetTimeout

__author__ = "hvnb"

from airtest.core.api import *

auto_setup(__file__)


from poco.drivers.android.uiautomation import AndroidUiautomationPoco
poco = AndroidUiautomationPoco(use_airtest_input=True, screenshot_each_action=False)

class Test_Api():

	# #点击
	# def click(self,poco1):
	# 	print("11111111111111111",poco1)
	# 	poco(poco1).click()
	#
	# #输入
	# def text(self,poco1,text):
	# 	return poco(poco1).set_text(text)
	#
	# # 对象存在判断
	# def exists(self,poco1):
	# 	invisible_obj = poco(poco1)
	# 	invisible_obj.exists()

	# 拖动和滑动（drag/swipe）
	def drag(self,poco_start,poco_stop):
		poco(poco_start).drag_to(poco(poco_stop))
